home *** CD-ROM | disk | FTP | other *** search
/ Skunkware 98 / Skunkware 98.iso / src / net / bind-contrib.tar.gz / bind-contrib.tar / contrib / nslint-1.5.1 / Makefile.in < prev    next >
Makefile  |  1996-10-25  |  3KB  |  106 lines

  1. #  Copyright (c) 1992, 1993, 1994, 1995, 1996
  2. #     The Regents of the University of California.  All rights reserved.
  3. #
  4. #  Redistribution and use in source and binary forms, with or without
  5. #  modification, are permitted provided that: (1) source code distributions
  6. #  retain the above copyright notice and this paragraph in its entirety, (2)
  7. #  distributions including binary code include the above copyright notice and
  8. #  this paragraph in its entirety in the documentation or other materials
  9. #  provided with the distribution, and (3) all advertising materials mentioning
  10. #  features or use of this software display the following acknowledgement:
  11. #  ``This product includes software developed by the University of California,
  12. #  Lawrence Berkeley Laboratory and its contributors.'' Neither the name of
  13. #  the University nor the names of its contributors may be used to endorse
  14. #  or promote products derived from this software without specific prior
  15. #  written permission.
  16. #  THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY EXPRESS OR IMPLIED
  17. #  WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED WARRANTIES OF
  18. #  MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
  19. #
  20. # @(#) $Header: /proj/src/isc/cvs-1/bind/contrib/nslint-1.5.1/Makefile.in,v 1.1 1996/10/25 17:13:28 vixie Exp $ (LBL)
  21.  
  22. #
  23. # Various configurable paths (remember to edit Makefile.in, not Makefile)
  24. #
  25.  
  26. # Top level hierarchy
  27. prefix = @prefix@
  28. exec_prefix = @exec_prefix@
  29. # Pathname of directory to install the binary
  30. BINDEST = @bindir@
  31. # Pathname of directory to install the man page
  32. MANDEST = @mandir@
  33.  
  34. #
  35. # You shouldn't need to edit anything below here.
  36. #
  37.  
  38. PROG = nslint
  39. CC = @CC@
  40. CCOPT = @V_CCOPT@
  41. INCLS = @V_INCLS@
  42. DEFS = @DEFS@
  43.  
  44. # Standard CFLAGS
  45. CFLAGS = $(CCOPT) $(DEFS) $(INCLS)
  46.  
  47. # Standard LIBS
  48. LIBS = @LIBS@
  49.  
  50. INSTALL = @INSTALL@
  51.  
  52. # Explicitly define compilation rule since SunOS 4's make doesn't like gcc.
  53. # Also, gcc does not remove the .o before forking 'as', which can be a
  54. # problem if you don't own the file but can write to the directory.
  55. .c.o:
  56.     @rm -f $@
  57.     $(CC) $(CFLAGS) -c $*.c
  58.  
  59. SRC =    $(PROG).c
  60.  
  61. TAGHDR = \
  62.     /usr/include/sys/types.h \
  63.     /usr/include/netinet/in.h
  64.  
  65. TAGFILES = $(SRC) $(TAGHDR)
  66.  
  67. OBJS =    @LIBOBJS@
  68.  
  69. CLEANFILES = $(PROG) $(OBJS)
  70.  
  71. $(PROG): $(PROG).c $(OBJS)
  72.     @rm -f $@
  73.     $(CC) $(CFLAGS) -o $@ $(PROG).c $(OBJS) $(LIBS)
  74.  
  75. install: force
  76.     $(INSTALL) -m 555 -o bin -g bin $(PROG) $(DESTDIR)$(BINDEST)
  77.  
  78. install-man: force
  79.     $(INSTALL) -m 444 -o bin -g bin $(PROG).8 $(DESTDIR)$(MANDEST)/man8
  80.  
  81. clean: force
  82.     rm -f $(CLEANFILES)
  83.  
  84. distclean: force
  85.     rm -f $(CLEANFILES) Makefile config.cache config.log config.status \
  86.         gnuc.h os-proto.h
  87.  
  88. tags:    $(TAGFILES)
  89.     ctags -wtd $(TAGFILES)
  90.  
  91. tar:    force
  92.     @cwd=`pwd` ; dir=`basename $$cwd` ; name=$(PROG)-`cat VERSION` ; \
  93.         list="" ; tar="tar chFFf" ; \
  94.         for i in `cat FILES` ; do list="$$list $$name/$$i" ; done; \
  95.         echo \
  96.         "rm -f ../$$name; ln -s $$dir ../$$name" ; \
  97.          rm -f ../$$name; ln -s $$dir ../$$name ; \
  98.         echo \
  99.         "(cd .. ; $$tar - [lots of files]) | compress > /tmp/$$name.tar.Z" ; \
  100.          (cd .. ; $$tar - $$list) | compress > /tmp/$$name.tar.Z ; \
  101.         echo \
  102.         "rm -f ../$$name" ; \
  103.          rm -f ../$$name
  104.  
  105. force: /tmp
  106.